package com.ljx.itbbs.server.article.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-03-27  19:31
 */
@Getter
public class LikeEvent extends ApplicationEvent {

    private String objKey;

    private Long userId;

    private Long objId;

    private Integer type;

    private Integer commentType;

    public LikeEvent(Object source, String objKey, Long userId, Long objId, Integer type) {
        super(source);
        this.objKey = objKey;
        this.userId = userId;
        this.objId = objId;
        this.type = type;
    }

    public LikeEvent(Object source, String objKey, Long userId, Long objId, Integer type, Integer commentType) {
        super(source);
        this.objKey = objKey;
        this.userId = userId;
        this.objId = objId;
        this.type = type;
        this.commentType = commentType;
    }
}
